<?php 

use yii\helpers\Html;
use yii\widgets\ActiveForm;
$form = ActiveForm::begin();
 ?>
<style class="text/css">
	.a{
		height:50px ;
	}
</style>
 <div>管理员管理-->添加管理员</div>
 <div class="contenttitle2">
        <h3>管理员列表</h3>
</div>
 <center>
	<table>
		<tr class="a">
			<td>管理员名称：</td>
			<td><?= $form->field($model,'admin_user')->textInput(['style'=>'width:200px'])->label('') ?></td>
		</tr>
		<tr class="a">
			<td>密码：</td>
			<td><?= $form->field($model,'admin_pwd')->passwordInput(['style'=>'width:200px'])->label('') ?></td>
		</tr>
		<tr class="a">
			<td>确认密码：</td>
			<td><?= $form->field($model,'admin_pwd')->textInput(['style'=>'width:200px'])->label('') ?></td>
		</tr>
		<tr class="a">
			<td>添加角色</td>
			<td><?php foreach ($data as $key => $val) {
				?>
				<input type="checkbox" name="role_id[]" style="opacity: 0.5;" value="<?= $val['role_id'] ?>"><?= $val['role_name'] ?>
			<?php } ?></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="2" align='center'><div class="form-group">
    <div class="col-lg-offset-1 col-lg-11">
        <?= Html::submitButton('添加', ['class' => 'btn btn-primary','style'=>'border-radius:10px;width:100px;','cursor'=>'pointer']) ?>
    </div>
</div></td>
			<td></td>
		</tr>
	</table>
 <p></p>
 <p></p>
<?php ActiveForm::end() ?>
    </center>


   